package com.baibang.baibang815.service.Impl;

import com.baibang.baibang815.domain.Address;
import com.baibang.baibang815.mapper.AddressMapper;
import com.baibang.baibang815.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddressServiceImpl implements AddressService {

    @Autowired
    private AddressMapper addressMapper;


    @Override
    public Address selectById(int id) {
        return addressMapper.selectById(id);
    }

    @Override
    public int saveAddress(Address address) {
        return addressMapper.insert(address);
    }


    @Override
    public int deleteAddress(int id) {
        return addressMapper.delete(id);
    }
}